<template>
  <h3>请求登录接口测试</h3>
</template>

<script lang="ts" setup>
//获取 vue 基础框架内容
import { ref , onMounted} from "vue";
// 实例化 pinia 仓库
import { storeToRefs } from "pinia"; // 把取消的响应式数据拿回来使用

import { storeLoginData } from '@/store/login_store'

const { loginResult } = storeToRefs(storeLoginData())
const { storeLoginRequest } = storeLoginData()
onMounted(async ()=>{
  await storeLoginRequest()
  console.log("登录拿到的返回结果", loginResult)
})
</script>

<style lang="scss" scoped>

</style>
